/**
 * Copyright (C) 2010 David Simonek <dafesimonek@gmail.com>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.dafe.partyband.db.model;

import org.dafe.partyband.db.api.IConcert;
import java.util.Date;
import java.util.List;
import org.dafe.partyband.db.api.ISong;

/**
 *
 * @author dafe
 */
public class Concert implements IConcert {

    private Date date;
    private Date startHour;
    private List<ISong> songs;
    private String location;
    private String description;

    public Concert(Date date, String location, List<ISong> songs, Date startHour, String description) {
        assert songs != null;
        assert date != null;
        assert location != null;
        this.date = date;
        this.songs = songs;
        this.location = location;
        this.startHour = startHour;
        this.description = description;
    }

    public List<ISong> getSongs() {
        return songs;
    }

    public void addSong(ISong song) {
        songs.add(song);
    }

    public void addSong(int index, ISong song) {
        songs.add(index, song);
    }

    public void removeSong(ISong song) {
        songs.remove(song);
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public Date getStartHour() {
        return startHour;
    }

    public void setStartHour(Date startHour) {
        this.startHour = startHour;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }


}
